import http from "@/utils/http.js";

// 上传文件
export const uploadFile = (data, uploadProgress) =>
  http.upload("/linuxapi/file/upload", data, uploadProgress);

// 删除文件
export const deleteFile = (data) => http.post("/linuxapi/file/delete", data);

// 创建文件
export const createFile = (data) => http.post("/linuxapi/file/create", data);

// 阅读文件
export const readFile = (data) => http.post("/linuxapi/file/read", data);

// 保存文件内容
export const writeFile = (data) => http.post("/linuxapi/file/write", data);
